package com.yanqu.road.entity.unionwar;

import com.yanqu.road.entity.DataObject;

import java.util.ArrayList;
import java.util.List;

/**
 * 商会战竞猜数据
 */
public class UserUnionWarGuessData extends DataObject {
    private long userId;        //玩家ID
    private int activityId;     //活动ID
    private int stage;          //阶段
    private List<BaseUnionGuessInfo> guessUnionBaseInfos = new ArrayList<>();    //竞猜列表
    private long modifyTime;    //修改时间

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public int getStage() {
        return stage;
    }

    public void setStage(int stage) {
        this.stage = stage;
    }

    public List<BaseUnionGuessInfo> getGuessUnionBaseInfos() {
        return guessUnionBaseInfos;
    }

    public void setGuessUnionBaseInfos(List<BaseUnionGuessInfo> guessUnionBaseInfos) {
        if (!this.guessUnionBaseInfos.equals(guessUnionBaseInfos)) {
            this.guessUnionBaseInfos = guessUnionBaseInfos;
            setUpdateOption();
        }
    }

    public long getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(long modifyTime) {
        if (this.modifyTime != modifyTime) {
            this.modifyTime = modifyTime;
            setUpdateOption();
        }
    }

}
